import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import '@/assets/icon/iconfont.css'
import "@/assets/css/theme.scss";
import App from "./App.vue";
import VueRouter from "vue-router";
import store from "./store";
import router from "./router";
import "@/plugin/jquery.nicescroll";
import './component.js'
Vue.use(VueRouter);
Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$store = store;
import { getCookie } from "@/utils/hsj";
Vue.prototype.$initNiceScroll = function (el = ".mains") {
  $(document).ready(function () {
    const scrollColor = {
      normal: "#B7D7FF",
      dark: "#005BAB",
    };
    const themeStyle = getCookie("themeStyle");
    $(el).niceScroll({
      horizrailenabled: false,
      cursorcolor: scrollColor[themeStyle],
      cursorborder: "none",
      smoothscroll: "false",
      autohidemode: false,
    });
  });
};
new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount("#app");
